<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding:10px">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td   width="6" height="6"><img src="images/j_crn_tl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_t_med.png" width="100%"></td>
            <td  width="6" height="6" ><img src="images/j_crn_tr_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="1" background="images/dot.png"></td>
            <td class="bg_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><img src="images/icon-48-menumgr.png" width="48" height="48" /></td>
                <td width="45%" class="mana_title">Danh sách nhân viên</td>
                <td width="50%" align="center">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="65%">&nbsp;</td>
                      <td class="icon_style" ><a href="index.php?progid=3&account=them"><img src="images/icon-32-new.png" width="32" height="32" border="0"/><br />
                      Th&ecirc;m</a></td>
                      
                     <td class="icon_style"><a href="#" onclick="return doSaveJobs('index.php?progid=3&account=xoa','Vui lòng chọn một bản ghi từ danh sách bên dưới')" ><img src="images/icon-32-delete.png" width="32" height="32"  border="0"/><br />
                      X&oacute;a</a></td>
                      <td class="icon_style"><a href="#"><img src="images/icon-32-help.png" width="32" height="32"  border="0"/><br />
                      Tr&#7907; gi&uacute;p</a></td>
                    </tr>
                  </table>
                  </td>
              </tr>
            </table></td>
            <td width="1" background="images/dot.png"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="6" ><img src="images/j_crn_bl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_b_med.png" width="100%"></td>
            <td width="6" height="6" ><img src="images/j_crn_br_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="7"></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td   width="6" height="6"><img src="images/j_crn_tl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_t_med.png" width="100%"></td>
            <td  width="6" height="6" ><img src="images/j_crn_tr_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="1" background="images/dot.png"></td>
            <td bgcolor="#fbfbfb"><form id="frmdanhsach" name="frmdanhsach" method="post" action="">
         	<? $search=$_POST['txtsearch'];?>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td style="padding-left:20px"><input type="text" name="txtsearch" id="txtsearch" value="<?=$search?>" style="width:250px" />
                    <input type="submit" name="button" id="button" value="Tìm kiếm" /></td>
                </tr>
                <tr>
                  <td style="padding:7px"><table width="100%" border="1" cellspacing="0" cellpadding="0" class="list_border">
                    <tr>
                      <td width="2%" class="list_title">#</td>
                      <td width="3%" class="list_title"> <input type="checkbox" name="chkAll" id="chkAll"  value="" onclick="CheckUncheckAll();" /></td>
                      <td width="10%" class="list_title">Tên đăng nhập</td>
                      <td width="10%" class="list_title">Họ và tên</td>
                      <td width="10%" class="list_title"><p>Email đăng nhập</p></td>
                      <td class="list_title" width="10%">Phòng ban </td>
                      <td class="list_title" width="10%">Chức vụ </td>
                      <td width="10%" class="list_title">&#272;&atilde; &#273;&#432;&#7907;c b&#7853;t</td>
                  
                     <td width="12%" class="list_title">&#272;&#259;ng k&yacute;</td>
                      <td width="6%" class="list_title">ID</td>
                    </tr>
                    <? 
	$sqlstring="select * from tb_account_admin where account_id>0";
	if($search!=""){$sqlstring.=" and (account_email like '%$search%' or account_name like '%$search%' or account_address like '%$search%' )";}
	$qr12=mysql_query($sqlstring);
	$n_record=mysql_num_rows($qr12); 
	$p=$_SESSION['page'];
	$n=$_GET['n'];
	include 'phantrang.php';
	$stringsql.=" order by account_id desc";
	//if ($n!='all'){	$sqlstring.=" limit $s,$p";	 }
	$qr1=mysql_query($sqlstring); 
	$i=0;
	while($row=mysql_fetch_array($qr1)) 
	{ $i=$i+1;
	$ids=$row['account_id'];
	//$date=date("Y-m-d H:i:s"); ;
	//mysql_query("update tbtaikhoan set taikhoan_ngay= '$date' where taikhoan_id='$ids'");
  ?>
                    <tr  onmouseover="this.bgColor='#ffffdd'" onmouseout="this.bgColor=''" >
                      <td align="center" style="height:30"><?=$i?></td>
                      <td align="center">
                      <input type="checkbox" name="industry<?=$i?>" id="industry<?=$i?>"  value="<?=$row['account_id']?>"/></td>
                     <td  align="center" class="link-edit"><a href="index.php?progid=3&account=sua&id=<?=$row['account_id']?>"><?=$row['login_name']?></a></td>
                      <td  align="center" class="link-edit"><a href="index.php?progid=3&account=sua&id=<?=$row['account_id']?>"><?=$row['account_name']?></a></td>
                      <td  align="center" class="link-edit"><a href="index.php?progid=3&account=sua&id=<?=$row['account_id']?>"><?=$row['account_email']?></a></td>
                      <td align="center">
					  	<?php if($row['room_id']==2){echo 'Kỹ thuật';}?> 
                     	<?php if($row['room_id']==3){echo 'Kế toán';}?>
                        <?php if($row['room_id']==4){echo 'Ban giám đốc';}?>
                       	<?php if($row['room_id']==7){echo 'Kinh doanh';}?>
                     </td>
                      <td align="center"><?php echo $row['position'];?> </td>
                      <td align="center"><? if($row['account_status']==1){?><img src="images/tick.png" /><? }else{?><img src="images/publish_x.png" /><? }?></td>
                     
                      <td align="center"><?=$row["account_time"]?></td>
                      <td align="center"><?=$row['account_id']?></td>
                    </tr>
<? }?>
                  </table></td>
                </tr>
                <tr>
                  <td><? view_page('index.php?progid=3'); ?></td>
                </tr>
              </table>
              <input type="hidden" name="count" id="count" value="<?=$i?>"  />
                        </form>
            </td>
            <td width="1" background="images/dot.png"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="6" ><img src="images/j_crn_bl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_b_med.png" width="100%"></td>
            <td width="6" height="6" ><img src="images/j_crn_br_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</td>
  </tr>
</table>
